package com.ruoyi.health.domain;

import java.util.List;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 活动风采管理对象 activity
 * 
 * @author dalian
 * @date 2023-08-06
 */
public class Activity extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 活动id */
    private Long id;

    /** 社区活动为0，平台活动为1 */
    @Excel(name = "社区活动为0，平台活动为1社区活动为0，平台活动为1")
    private Long type;

    /** 地域id，平台活动此项为空，表示线上 */
    @Excel(name = "地域id，平台活动此项为空，表示线上")
    private Long regionId;

    /** 活动地点 */
    @Excel(name = "活动地点")
    private String place;

    /** 活动日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "活动日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date activityDate;

    /** 封面图片 */
    @Excel(name = "封面图片")
    private String cover;

    /** 活动标题 */
    @Excel(name = "活动标题")
    private String title;

    /** 活动简介 */
    @Excel(name = "活动简介")
    private String brief;

    /** 是否热门 */
    @Excel(name = "是否热门")
    private Integer isHot;

    /** 活动介绍信息 */
    private ActivityDetail activityDetail;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setType(Long type) 
    {
        this.type = type;
    }

    public Long getType() 
    {
        return type;
    }
    public void setRegionId(Long regionId) 
    {
        this.regionId = regionId;
    }

    public Long getRegionId() 
    {
        return regionId;
    }
    public void setPlace(String place) 
    {
        this.place = place;
    }

    public String getPlace() 
    {
        return place;
    }
    public void setActivityDate(Date activityDate) 
    {
        this.activityDate = activityDate;
    }

    public Date getActivityDate() 
    {
        return activityDate;
    }
    public void setCover(String cover) 
    {
        this.cover = cover;
    }

    public String getCover() 
    {
        return cover;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setBrief(String brief) 
    {
        this.brief = brief;
    }

    public String getBrief() 
    {
        return brief;
    }
    public void setIsHot(Integer isHot) 
    {
        this.isHot = isHot;
    }

    public Integer getIsHot() 
    {
        return isHot;
    }

    public ActivityDetail getActivityDetail()
    {
        return activityDetail;
    }

    public void setActivityDetail(ActivityDetail activityDetail)
    {
        this.activityDetail = activityDetail;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("type", getType())
            .append("regionId", getRegionId())
            .append("place", getPlace())
            .append("activityDate", getActivityDate())
            .append("cover", getCover())
            .append("title", getTitle())
            .append("brief", getBrief())
            .append("isHot", getIsHot())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("activityDetail", getActivityDetail())
            .toString();
    }
}
